
<form role="form" class="epii" method="post" data-form="1" action="{url treatment_cate add_edit }">

    <div class="form-group">
        <label><span style="color: red">*</span>名称：</label>
        <input type="text" class="form-control" name="r[name]" value="{? $info.name}" required
               placeholder="请输入治疗项目分类名称">
    </div>

    {if $adminInfo['role']==1}
    <div class="form-group">
        <label><span style="color: red">*</span>所属医院：</label>
        <select class="selectpicker" name="r[hospital_id]" id="" class="">
            {:options,$hospitals,$info.hospital_id}
        </select>
    </div>
    {/if}
    <div class="form-group">
        <label>状态：</label>
        <select class="selectpicker" name="r[status]" id="">
            {:options,$status,$info.status?1}
        </select>
    </div>
    <div class="form-group">
        <label>排序：</label>
        <input type="text" class="form-control" name="r[sort]" value="{? $info.sort}"
               placeholder="请输入排序数字默认0">
    </div>
    <input type="hidden" name="id" value="{$id?0}">
    <div class="form-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>
<script src="{$laydate}/laydate.js"></script>
<script type="text/javascript">

    window.onEpiiInit(function() {
        laydate.render({
            elem: '#birth_date',
            trigger: 'click',
            format: 'yyyy-MM-dd',

        });
    });

</script>
